package com.wlz.controller;

import com.wlz.basic.ScProducer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wlz
 * @date 2022-07-03  3:46 下午
 */
@RestController
@RequestMapping("/MQTest")
public class MQTestController {

    @Autowired
    private ScProducer scProducer;

    @GetMapping("/sendMessage")
    public String sendMessage(String message) {
        scProducer.sendMessage(message);
        return "消息发送完毕";
    }


}
